#ifndef MYSYNTAXHIGNLGHTER_H
#define MYSYNTAXHIGNLGHTER_H
#include <QSyntaxHighlighter>

class MySyntaxHignlghter : public QSyntaxHighlighter
{
    Q_OBJECT
public:
    MySyntaxHignlghter(QTextDocument* parent=0);

protected:
    void highlightBlock(const QString& text);    //重写高亮文本块
};

#endif // MYSYNTAXHIGNLGHTER_H
